{% extends 'base.html' %}
{% block title %}
    <a class="navbar-brand" href="#"> 修改 {{ staff.username }} 的试用期信息 </a>
{% endblock %}
{% block content %}
<div class="content">
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<div class="card">
					<form id="allInputsFormValidation" class="form-horizontal"  method="post" >
						<div class="content">
							<h4 class="title">修改 {{ staff.username }} 的试用期信息</h4>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">考核评语<span style="color:red">*</span></label>
                                    <div class="col-sm-6">

                                        <input type="text" name="examine_remark" value="{{ probation.examine_remark }}" class="form-control datepicker" autocomplete="off" required>
                                    </div>
                                </div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">考核结果<span style="color:red">*</span></label>
									<div class="col-sm-10" style="margin-top: 10px">
                                        {% if probation.examine_result == '转正' %}
                                        <input type="radio" data-toggle="radio" name="examine_result" value="转正" checked="">转正
                                        <input type="radio" data-toggle="radio" name="examine_result" value="延期">延期
                                        <input type="radio" data-toggle="radio" name="examine_result" value="不予录用">不予录用
                                        {% elif probation.examine_result == '延期' %}
                                        <input type="radio" data-toggle="radio" name="examine_result" value="转正" >转正
                                        <input type="radio" data-toggle="radio" name="examine_result" value="延期" checked="">延期
                                        <input type="radio" data-toggle="radio" name="examine_result" value="不予录用">不予录用
                                        {% elif probation.examine_result == '不予录用' %}
                                        <input type="radio" data-toggle="radio" name="examine_result" value="转正" >转正
                                        <input type="radio" data-toggle="radio" name="examine_result" value="延期" >延期
                                        <input type="radio" data-toggle="radio" name="examine_result" value="不予录用"checked="">不予录用
                                        {% endif %}
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">处理日期<span style="color:red">*</span></label>
                                    <div class="col-sm-6">

                                        <input type="date" value="{{ probation.disposedate }}"  name="disposedate" class="form-control datepicker" autocomplete="off" required="required">
                                    </div>
                                </div>
							</fieldset>

                            <fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">备注</label>
                                    <div class="col-sm-6">

                                        <textarea cols="50" rows="8"  name="remark" class="form-control datepicker" autocomplete="off" >{{ probation.remark }}</textarea>
                                    </div>
                                </div>
							</fieldset>

						</div>
						<div class="card-footer text-center">
							<input type="submit" name="submit" class="btn btn-info btn-fill" value="提交">
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
{% endblock %}